home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Mania 4
/
MacMania 4.toast
/
/
Internet software
/
HTML Voc 1.3
/
HTML Vocabulary 1.3
/
HTML Vocabulary 1.3.rsrc
/
TEXT_1300_Forms.txt
< prev
next >
Wrap
Text File
|
1996-05-29
|
3KB
|
89 lines
Forms
<FORM ACTION=url METHOD=method [ENCTYPE=encrypt] [SCRIPT=url]
[TARGET=text]>
This is the start tag of a new form. ACTION is the URL of a
cgi script, an email or a page to which it will be sended.
METHOD is either "post" or "get", depending how to send the
information. ENCTYPE is the encryption type, for example MIME.
SCRIPT is the client side URL script. TARGET is a Netscape
extension which opens the result in a (new) window or frame
named "text". If text is "_blank", the window will be unamed.
If it is "_self", the current window or frame will be used.
Must end with </FORM>. To convert the result of a mailto: form
into readable text, I've written another freeware program named
Mailto Converter, available from my homepage or Info-Mac and
other shareware libraries on the net. Use it if you like.
NOTE:
If ACTION is not defined, Netscape will display an email window
with your own subject. I'm not sure if this is an official
feature, or if it is supported in all versions of the program.
<INPUT>
INPUT is a form object, for example a field. The following
parameters are allowed:
NAME=text
The name of the object. The result will be sent as 'name=value'
TYPE=text
Defines the object type. Can be either TEXT (Text field), INT
(Number field), PASSWORD (Password field, characters is viewed
as bullets, •), RADIO (radio button, only one can be checked),
CHECKBOX (Hilited or not), HIDDEN (A hidden textfield), FILE
(A special button which will ask the user for a file to upload.
Requires special cgi-scripts and servers.), SUBMIT (a button
used to send the form), IMAGE (Imagemap as a submit button)
and RESET (a button which reset all objects to its default
values). An object of the type SUBMIT or IMAGE must be
included to make the form to work.
VALUE=text
Is the default value of the object, for example "Hello" in
a text field. If TYPE is RADIO or CHECK, VALUE is returned
only if the radiobutton or checkbox is checked. May be used
in all objects.
SIZE=n
Defines the width of the object in pixels. Not needed in
all objects, for example not in buttons.
MAXLENGTH=n
Defines the max length of the value, for example 3 (characters).
Needed in almost the same objects as the SIZE parameter.
CHECKED
Set the hilite of a radiobutton or checkbox to true as default.
Not used in other objects.
SRC=url
For use with TYPE=IMAGE. Same as for <IMG> pictures.
ALIGN=right|center|left
Optional parameter for use with TYPE=IMAGE. Same as for <IMG>.
Other form objects
<SELECT NAME=text [SIZE=n] [MULTIPLE]>
Start tag for a popup button or list. Must end with </SELECT>.
NAME is the object name and SIZE the number of visible rows.
If the optional MULTIPLE parameter is used, the object will be
a list. If not, it will show up as a popup button. Multiple
items can be hilited in a list by holding the command and
control keys. Use the following tag within the <SELECT> tag:
<OPTION [VALUE=text] [SELECTED]>text2
Defines a new popupmenu option. Don't end with </OPTION>!
Value is the text to be sent, usually "text2".
<TEXTAREA NAME=text [COLS=n] [ROWS=n] [WRAP=virtual|physical>
Insert a scrolling text field. COLS is the number or columns
(horizontal characters). WRAP is a Netscape tag and sets the
text aling of the textfield. Must end with </TEXTAREA>. The
text between the start and end tag is the default text in the
box, for example <TEXTAREA>Hello</TEXTAREA>.